package com.aoxin.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.aoxin.model.SlfClassroomCEmployee;
import com.aoxin.model.SlfClassroomEmploy;

public interface SlfClassroomEmployMapper {
    int deleteByPrimaryKey(Integer employId);

    int insert(SlfClassroomEmploy record);

    int insertSelective(SlfClassroomEmploy record);

    SlfClassroomEmploy selectByPrimaryKey(Integer employId);

    int updateByPrimaryKeySelective(SlfClassroomEmploy record);

    int updateByPrimaryKey(SlfClassroomEmploy record);
    
    //判断该时间端教室是否被占用
    Integer IsClassroomEmploy(Map<String,Object> map);
    
    List<String> IsClassroomEmployList(@Param("classroomId") Integer classroomId);
    
    //判断是否存在该班级
    SlfClassroomEmploy IsClassroomEmployMessage(Map<String,Object> map);
    
    SlfClassroomEmploy IsClassroomEmployMessageC(Map<String,Object> map);
    
    //更新已被占用的教室
    void updateClassroomEmploy(String endTime);
    
    //家里搞(已被占用的班级教室,有空位)
    List<SlfClassroomEmploy> getclassroomEmploys();
    
    //数量改变
    void updateEmployCount(Map<String,Object> map);
    
    //已占用教室分组(方便补位)
    List<SlfClassroomEmploy> groupClassroomEmploy(String weekDay);
    
    //找到交换的班级id
    Integer EmployId(Map<String,Object> map);
    
    //互换班级操作
    void changeClassroom(Map<String,Object> map);
    
    //找到复核补课人的班级
    List<SlfClassroomEmploy> getCheckClassroomBk(Map<String,Object> map);
    
    //判断人数是否相同
    Integer getClassCoursePeopleNumber(Map<String,Object> map);

    /**
     * 查询slfClassroomEmploy
     * @param slfClassroomEmploy
     * @return
     */
    List<SlfClassroomEmploy> getSlfClassroomEmploy(SlfClassroomEmploy slfClassroomEmploy);
    
    //判断这个教室这个时间是否被占用
    Integer IsClassroomEmployExpectTime(Map<String,Object> map);
    
    List<SlfClassroomEmploy> getClassroomEmploys();
    
    //查询是否被占用(时间上*B类)
    SlfClassroomEmploy getIsEmployClassroomMasseage(String employTime);
    
    //查询是否被占用(时间上*C类)
    SlfClassroomEmploy getIsEmployClassroomCMasseage(String courseStartTime);
    
    //查询是否存在占用情况
    Integer IsClassroomEmployOther(Integer classroomId);
    
    //重置时间
    void resettingMapper(Map<String,Object> map);
    
    List<SlfClassroomEmploy> queryEmployWeekMapper(Map<String,Object> map);
    
    List<SlfClassroomCEmployee> queryEmployWeekCMapper(Map<String,Object> map);
     
     
}